package com.zmsoft.persistent.sfg.Sfg662040GameCrops;

import java.util.ArrayList;
import java.util.HashMap;

import org.cnsoft.framework.apidoc.MyApiDocSupport;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 农场物品配置信息-原料接口
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/doc/1.0/base/sfg662040gamecrops", method = { RequestMethod.GET })
public class Sfg662040GameCropsApiDoc extends MyApiDocSupport {

	// 获得API地址
	public String loadApiDocName() throws Exception {
		return "农场物品配置信息-原料;/doc/1.0/base/sfg662040gamecrops/all";
	}

	// API文档描述
	@RequestMapping(value = "/all", method = RequestMethod.GET)
	public HashMap<String, Object> loadApiDocValue() throws Exception {
		HashMap<String, Object> all = new HashMap<String, Object>();
		// 输出基本信息
		all.put("name", "农场物品配置信息-原料");
		all.put("baseurl", "/api/1.0/base/sfg662040gamecrops");
		// 输出API列表
		{
			ArrayList<Object> list = new ArrayList<Object>();
			list.add("/list");
			list.add("/info");
			list.add("/append");
			list.add("/modify");
			list.add("/discard");
			all.put("apilist", list);
		}
		// 输出字段信息
		{
			ArrayList<Object> list = new ArrayList<Object>();
			HashMap<String, Object> item;
			{
				item = new HashMap<String, Object>();
				item.put("enname", "gameType");
				item.put("cnname", "游戏分类(1农场2牧场3鱼塘4工坊)");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "gameName");
				item.put("cnname", "游戏名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsSort");
				item.put("cnname", "物品序号");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsName");
				item.put("cnname", "物品名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsTypeCode");
				item.put("cnname", "物品类别");
				item.put("datatype", "String");
				item.put("memo", "1种子2牲畜3鱼苗4原料5道具8商品9其他");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsLevel");
				item.put("cnname", "物品等级");
				item.put("datatype", "Long");
				item.put("memo", "1幼小/2发芽/3成长1/4成长2/5成熟");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsPicUrl");
				item.put("cnname", "物品图片");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsRool");
				item.put("cnname", "成长阶段规则(1初始2成长3交配4发育5成熟)");
				item.put("datatype", "String");
				item.put("memo", "1幼小/2发芽/3成长1/4成长2/5成熟");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needFarmLevel");
				item.put("cnname", "使用需要对应等级");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needMoney");
				item.put("cnname", "使用需要消耗金币");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needExp");
				item.put("cnname", "使用需要消耗经验");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needTime");
				item.put("cnname", "成熟需要时间秒");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "maxSeasonsNum");
				item.put("cnname", "可以循环季数");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitMin");
				item.put("cnname", "收获果实数目-最小值");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitMax");
				item.put("cnname", "收获果实数目-最大值");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitPrice");
				item.put("cnname", "每个果实价格");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitVolume");
				item.put("cnname", "每个果实占用仓库容积大小");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsExp");
				item.put("cnname", "每季收获经验");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			all.put("itemlist", list);
		}

		return all;
	}

}
